package cn.wsalix.type;

public enum UserChangeEnum {
	add("1"), edit("2"), delete("3"), focus("4"), friend("5"), dept("6"),
	speak("7"), editNickname("8"), role("9"), group("5");
	private String code;

	UserChangeEnum(String code) {
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public static UserChangeEnum findByCode(String code) {
		for (UserChangeEnum userKind : UserChangeEnum.values()) {
			if (userKind.getCode().equals(code)) {
				return userKind;
			}
		}
		return null;
	}

}
